// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false

/*引入axios*/
import Axios from 'axios'
Vue.prototype.axios = Axios;

//Axios.defaults.withCredentials = true;


//引入国际化组件
import VueI18n from 'vue-i18n';

Vue.use(VueI18n);

//调用语言包
const i18n = new VueI18n({
	//默认语言包
	locale:'en',
	//导入语言包
	messages:{
		'cn':require('./lang/cn'),
		'en':require('./lang/en')
	}
});



require('!style-loader!css-loader!../static/index.css');

import QS from 'qs'
Vue.prototype.qs = QS;

import HeyUI from 'heyui';
Vue.use(HeyUI);

new Vue({
  el: '#app',
  router,
  i18n,
  components: { App },
  template: '<App/>',
  render: h => h(App)
})
